@extends('admin::layouts.master')
@section('content')
    <div class="card" id="app">
        <div class="card-header">模板管理</div>
        <div class="tab-container">
            <ul role="tablist" class="nav nav-tabs">
                <li class="nav-item"><a href="/shop/article" class="nav-link active">模板列表</a></li>
            </ul>
            <div class="card card-contrast card-border-color-success">
                <div class="card-body row">
                    @foreach($data as $d)
                    <div class="col-sm-3 text-center">
                        <img src="{{$d['url']}}" style="width:100%;">
                        <h5>模板名称：{{$d['title']}}</h5>
                        @if(\HDModule::config('admin.config.template')==$d['name'])
                        <a href="javascript:;" class="btn btn-success mt-2 text-center">当前模板</a>
                            @else
                            <a href="/admin/template/{{$d['name']}}" class="btn btn-primary mt-2 text-center">设为默认模板</a>
                            @endif
                    </div>
                        @endforeach
                </div>
            </div>
        </div>
    </div>
    <div class="float-right">

    </div>
@endsection
